package com.hfy.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @ author 韩
 * time: 2024/5/21 17:20
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MusicVo {
    private Long id;
    private String name;
    private String music;
    private String musician;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate createTime;
    private String cover;
    private String album;
    // 在数据库里存储的是秒数 展示用分钟
    private String duration;
    // 是否对其收藏
    private Boolean isLike;
    // 喜欢总数
    private Integer likeCount;
    // 评论总数
    private Integer commentCount;
}
